5 ONERRORGOTO1000 10 DEFCHR$(255)="0000FE0000":MODE8:DIM:PRINTCHR$(15); 30 f$="":c$=CHR$(5):s=0:h=1e-5:e=1e-7:m=20:ANGLE1 50 CLS:PRINT"Newton's method f(x)=0";TAB(0);"1:f(x),x0 2:h,î,loop"; 60 k=ASC(INPUT$(1,@)):IFk=13 ORk=49 THEN90 ELSEIFk=50 THEN150 80 GOTO60 90 CLS:PRINT"Define function"; 100 LOCATE0,1:PRINTc$;"f(x) ?";f$;:LOCATE0,0:LOCATE6,1:INPUT@100;f$:LOCATE0,0:z=VALF(f$) 110 IFLEN(f$)<25 THENg$=f$ ELSEg$=LEFT$(f$,21)+"¥¥¥" 120 m$="f(x) = "+g$:s$="x0":z=s:GOSUB800:s=z:GOTO250 150 m$="fº(x)=(f(x+h)-f(x))/h (h>0)":s$="h":z=h:GOSUB800:h=z:IFh=<0 THEN150 170 m$="Err ïXn+1-Xnï<î (î>0)":s$="î":z=e:GOSUB800:e=z:IFe<1e-90 THEN170 200 m$="Max loop (n>0)":s$="n":z=m:GOSUB800:m=z:IFm=<0 ORFRACm<>0 THEN200 ELSE50 250 CLS:PRINTm$;TAB(0);"x = .....";:t=s 310 FORi=1 TOm 320 x=t:g=VALF(f$):x=t+h:f=VALF(f$):x=t-g*h/(f-g) 350 IFABS(t-x)=